Loupe - Log - Monitor - Resolve
Gibraltar.Monitor Namespace / SimpleLogMessage Class / SimpleLogMessage Constructor / SimpleLogMessage Constructor(LogMessageSeverity,LogWriteMode,String,String,Int32,Exception,String,Object[])
The severity of the log message.
Whether to queue-and-return or wait-for-commit.
The name of the logging system the message was issued through, such as "Trace" or "Gibraltar".
The logging category or application subsystem category that the log message is associated with, such as "Trace", "Console", "Exception", or the logger name in Log4Net.
The number of stack frames to skip over to find the first candidate to be identified as the source of the log message.
An exception associated with this log message (or null for none).
A message string with optional formatting, which may span multiple lines.
Optional additional args to match up with the formatting string.

In This Topic
    SimpleLogMessage Constructor(LogMessageSeverity,LogWriteMode,String,String,Int32,Exception,String,Object[])
    In This Topic
    Creates a SimpleLogMessage object with specified LogWriteMode behavior and specified Exception object to attach.
    Syntax
    'Declaration
     
    
    Public Function New( _
       ByVal severity As LogMessageSeverity, _
       ByVal writeMode As LogWriteMode, _
       ByVal logSystem As String, _
       ByVal categoryName As String, _
       ByVal skipFrames As Integer, _
       ByVal exception As Exception, _
       ByVal message As String, _
       ByVal ParamArray args() As Object _
    )

    Parameters

    severity
    The severity of the log message.
    writeMode
    Whether to queue-and-return or wait-for-commit.
    logSystem
    The name of the logging system the message was issued through, such as "Trace" or "Gibraltar".
    categoryName
    The logging category or application subsystem category that the log message is associated with, such as "Trace", "Console", "Exception", or the logger name in Log4Net.
    skipFrames
    The number of stack frames to skip over to find the first candidate to be identified as the source of the log message.
    exception
    An exception associated with this log message (or null for none).
    message
    A message string with optional formatting, which may span multiple lines.
    args
    Optional additional args to match up with the formatting string.
    Remarks
    This constructor creates a SimpleLogMessage with a specified LogWriteMode behavior (queue-and-return or wait-for-commit) and with a specified Exception object (which may be null) to attach to this log message. The format args will not be scanned for an Exception object by this overload.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also